home *** CD-ROM | disk | FTP | other *** search
/ System Booster / System Booster.iso / Commodities / PopShell / Install-PopShell < prev    next >
Text File  |  1996-09-26  |  10KB  |  468 lines

  1. ; $VER: Install-PopShell 1.1 (18.02.95)
  2. ; Script to install PopShell
  3. ; ©1993-95 Tobias Abt 
  4.  
  5. (set #PopName
  6. (cat "PopShell"
  7. ))
  8.  
  9. ;=============================================================================
  10. ; English strings
  11.  
  12. (if (= @language "english")
  13. (
  14.  
  15. (set #Bad-Kick
  16. (cat "\n\nYou need Kick/WB 2.04 or better for PopShell!"
  17. ))
  18.  
  19. (set #Message
  20. (cat "\n\nWelcome to PopShell!\n"
  21.      "You are about to install a very powerful Utility for your convenience using the Amiga."
  22. ))
  23.  
  24. (set #Path-Manually
  25. (cat "Select path manually"
  26. ))
  27.  
  28. (set #Yes
  29. (cat "Yes"
  30. ))
  31.  
  32. (set #No
  33. (cat "No"
  34. ))
  35.  
  36. ;PopShell
  37. (set #Ask-PopShell
  38. (cat "\n\nWhere do you want PopShell to be installed?"
  39. ))
  40.  
  41. (set #Help-PopShell
  42. (cat "Usually it is most reasonable to install PopShell in the"
  43.      "WBStartup drawer of your system partition"
  44. ))
  45.  
  46. (set #AskPath-PopShell
  47. (cat "Select path for PopShell, please"
  48. ))
  49.  
  50. (set #Ask-PopShellCfg
  51. (cat "\n\nWhere do you want PopShell to put its config file?"
  52. ))
  53.  
  54. (set #Help-PopShellCfg
  55. (cat "Any drawer which can be reached when PopShell is started."
  56.      "Common paths are SYS:WBStartup, S: or SYS:Storage"
  57. ))
  58.  
  59. (set #With-PopShell
  60. (cat "With PopShell"
  61. ))
  62.  
  63. (set #Ask-PopShellCfgPath
  64. (cat "Select a path for PopShell's config file, please"
  65. ))
  66.  
  67. (set #Ask-ReplaceCfg
  68. (cat "\n\nATTENTION!!!\n\nDo you want to replace the old PopShell.config?"
  69. ))
  70.  
  71. (set #Help-ReplaceCfg
  72. (cat "\n\nATTENTION! If you choose \"Yes\", the old file will be renamed and a new one created!"
  73. ))
  74.  
  75. (set #Rename-PopShellCfg
  76. (cat "Renaming old PopShell.config"
  77. ))
  78.  
  79. ;icons
  80. (set #Ask-NiceIcons
  81. (cat "\n\nDo you want the nice 16 color icon for PopShell?"
  82. ))
  83.  
  84. (set #Help-NiceIcons
  85. (cat "Do you want to get the icon for Workbenches with 16 colors and more or do you want the simple one with four colors?"
  86. ))
  87.  
  88. (set #Ask-ReplaceIcon
  89. (cat "\n\nDo you want to replace the existing icon?"
  90. ))
  91.  
  92. (set #Help-ReplaceIcon
  93. (cat "If you select YES, the old icon and the therein contained configuration will be replaced by an icon with default configuration."
  94. ))
  95.  
  96. ;actions
  97. (set #Installing
  98. (cat "Installing"
  99. ))
  100.  
  101. (set #WorkOn
  102. (cat "Working on icon for"
  103. ))
  104.  
  105. (set #EmptyCfg
  106. (cat "Creating empty config file for"
  107. ))
  108.  
  109. (set #Complete
  110. (cat "\n\n\nInstallation complete"
  111. ))
  112.  
  113. ; languages
  114. (set #Ask-Languages
  115. (cat "Which languages except English should be installed?"
  116. ))
  117.  
  118. (set #Help-Languages
  119. (cat "English is the builtin language. The other language(s) are available through locale catalogs which are optionally (need locale.library)"
  120. ))
  121.  
  122. (set #Lang-German
  123. (cat "German"
  124. ))
  125.  
  126. (set #InstCat
  127. (cat "Installing catalog file: "
  128. ))
  129.  
  130. (set #Ask-PopShellCatalogs
  131. (cat "\n\nWhere do you want PopShell to put its catalog file(s)?"
  132. ))
  133.  
  134. (set #Help-PopShellCatalogs
  135. (cat "The catalogs for locale.library can be either stored in the same directory as PopShell or in 'LOCALE:'"
  136. ))
  137.  
  138. (set #Locale
  139. (cat "In 'LOCALE:'"
  140. ))
  141.  
  142. )) ; english strings
  143.  
  144. ;=============================================================================
  145. ; German strings
  146.  
  147. (if (= @language "deutsch")
  148. (
  149.  
  150. (set #Bad-Kick
  151. (cat "\n\nSie benötigen KickStart 2.04 oder höher für PopShell!"
  152. ))
  153.  
  154. (set #Message
  155. (cat "\n\nWillkommen zu PopShell! \nSie erhalten jetzt die Gelegenheit,\n"
  156.      "Ihr System um ein leistungsfähiges Programm für die komfortablere Bedienung ihres Amigas zu erweitern."
  157. ))
  158.  
  159. (set #Path-Manually
  160. (cat "Pfad manuell wählen"
  161. ))
  162.  
  163. (set #Yes
  164. (cat "Ja"
  165. ))
  166.  
  167. (set #No
  168. (cat "Nein"
  169. ))
  170.  
  171. ; PopShell
  172. (set #Ask-PopShell
  173. (cat "\n\nWo soll PopShell installiert werden?"
  174. ))
  175.  
  176. (set #Help-PopShell
  177. (cat "In der Regel ist es am sinnvollsten, PopShell in der "
  178.      "WBStartup-Schublade der Systempartition zu installieren"
  179. ))
  180.  
  181. (set #AskPath-PopShell
  182. (cat "Wählen Sie bitte das Zielverzeichnis für PopShell"
  183. ))
  184.  
  185. (set #Ask-PopShellCfg
  186. (cat "\n\nWo soll PopShell seine Konfigurationsdaten ablegen?"
  187. ))
  188.  
  189. (set #Help-PopShellCfg
  190. (cat "Irgeindeine Schublade, die beim Start von PopShell erreichbar"
  191.      "ist. Gängige Schubladen wären zum Beispiel SYS:WBStartup, S: oder SYS:Storage"
  192. ))
  193.  
  194. (set #With-PopShell
  195. (cat "Zu PopShell"
  196. ))
  197.  
  198. (set #Ask-PopShellCfgPath
  199. (cat "Wählen Sie bitte das Zielverzeichnis für PopShell's Konfigurationsdatei"
  200. ))
  201.  
  202. (set #Ask-ReplaceCfg
  203. (cat "\n\nACHTUNG!!!\n\nSoll die alte PopShell-Konfigurationsdatei ersetzt werden?"
  204. ))
  205.  
  206. (set #Help-ReplaceCfg
  207. (cat "VORSICHT! Wenn Sie \"Ja\" anwählen, wird Ihre bestehende Datei umbenannt und eine neue Datei erstellt!"
  208. ))
  209.  
  210. (set #Rename-PopShellCfg
  211. (cat "Benenne alte Konfigurationsdatei um"
  212. ))
  213.  
  214. ;icons
  215. (set #Ask-NiceIcons
  216. (cat "\n\nWollen Sie das nette 16-farbige Icon zu PopShell?"
  217. ))
  218.  
  219. (set #Help-NiceIcons
  220. (cat "Wenn Sie die Workbench mit mindestens 16 Farben und der Amberpalette"
  221.      "und gegebenenfalls PatchPens benutzen, empfehle ich Ihnen, mit 'JA' zu antworten..."
  222. ))
  223.  
  224. (set #Ask-ReplaceIcon
  225. (cat "\n\nWollen Sie das bereits existierende Icon ersetzen?"
  226. ))
  227.  
  228. (set #Help-ReplaceIcon
  229. (cat "Wenn Sie JA wählen, wird das alte Icon und die darin enthaltenen Konfigurationsdaten durch ein neues Icon ersetzt!"
  230. ))
  231.  
  232. ;actions
  233. (set #Installing
  234. (cat "Installiere"
  235. ))
  236.  
  237. (set #WorkOn
  238. (cat "Bearbeite Icon von"
  239. ))
  240.  
  241. (set #EmptyCfg
  242. (cat "Erstelle eine leere Konfigurationsdatei für"
  243. ))
  244.  
  245. (set #Complete
  246. (cat "\n\n\nInstallation beendet"
  247. ))
  248.  
  249. ; languages
  250. (set #Ask-Languages
  251. (cat "Welche Sprachen außer Englisch sollen noch installiert werden?"
  252. ))
  253.  
  254. (set #Help-Languages
  255. (cat "Intern ist PopShell mit englischen Texten ausgestattet. Die andere(n) Sprache(n) sind über zusätzliche Dateien realisiert (benötigt locale.library)"
  256. ))
  257.  
  258. (set #Lang-German
  259. (cat "Deutsch"
  260. ))
  261.  
  262. (set #InstCat
  263. (cat "Installiere Catalogdatei: "
  264. ))
  265.  
  266. (set #Ask-PopShellCatalogs
  267. (cat "Wählen Sie bitte das Zielverzeichnis für PopShell's Sprachdatei(en)"
  268. ))
  269.  
  270. (set #Help-PopShellCatalogs
  271. (cat "Es ist möglich, diese Dateien entweder im gleichen Verzeichnis wie PopShell oder in 'LOCALE:' abzulegen."
  272. ))
  273.  
  274. (set #Locale
  275. (cat "'LOCALE:'"
  276. ))
  277.  
  278. )) ; german strings
  279.  
  280.  
  281.  
  282. ;=============================================================================
  283. ;               install ...
  284. ;=============================================================================
  285.  
  286. (complete 0)
  287.  
  288. (if (< (getversion) (* 37 65536))
  289.     (abort #Bad-Kick)
  290. )
  291.  
  292. (set olduserlevel @user-level)
  293. (user 2)
  294. (message #Message)
  295. (user olduserlevel)
  296.  
  297. (if (askbool (prompt #Ask-PopShell)
  298.              (help #Help-PopShell)
  299.              (choices "SYS:WBStartup" #Path-Manually)
  300.    )
  301.    (set PopShellPath "SYS:WBStartup")
  302.    (set PopShellPath 
  303.       (askdir (prompt #AskPath-PopShell)
  304.               (help #Help-PopShell)
  305.               (default "SYS:WBStartup")
  306.       )
  307.    )
  308. )
  309. (complete 10)
  310.  
  311. (if (askbool (prompt #Ask-PopShellCfg)
  312.              (help #Help-PopShellCfg)
  313.              (choices #With-PopShell #Path-Manually)
  314.    )
  315.    (set PopShellCfgPath PopShellPath)
  316.    (set PopShellCfgPath 
  317.       (askdir (prompt #Ask-PopShellCfgPath)
  318.               (help #Help-PopShellCfg)
  319.               (default PopShellPath)
  320.       )
  321.    )
  322. )
  323. (complete 20)
  324.  
  325. (user 2)
  326. (if (= (exists (tackon PopShellCfgPath "PopShell.config")) 1)
  327.    (
  328.       (set PopCfg (askbool (prompt #Ask-ReplaceCfg)
  329.                            (help #Help-ReplaceCfg)
  330.                            (choices #Yes #No)
  331.                   )
  332.       )
  333.       (set PopCfgRename PopCfg)
  334.    )
  335.    (set PopCfg 1)
  336. )
  337. (complete 30)
  338. (user olduserlevel)
  339.  
  340. (if (> (getversion "libs:locale.library") (* 38 65536))
  341.    (
  342.       (set languages (askoptions (prompt  #Ask-Languages)
  343.                                  (help    #Help-Languages)
  344.                                  (choices #Lang-German)
  345.                                  (default languages)
  346.                      )
  347.       )
  348.       (if (askbool (prompt #Ask-PopShellCatalogs)
  349.                    (help #Help-PopShellCatalogs)
  350.                    (choices #With-PopShell #Locale)
  351.          )
  352.          (set LocalePath PopShellPath)
  353.          (set LocalePath "LOCALE:")
  354.       )
  355.    )
  356.    (set languages 0)
  357. )
  358. (complete 40)
  359.  
  360. (if (exists (tackon PopShellPath "PopShell.info") (noreq))
  361.     (set copyicon
  362.         (askbool (prompt #Ask-ReplaceIcon)
  363.                  (help #Help-ReplaceIcon)
  364.                  (choices #Yes #No)
  365.         )
  366.     )
  367.     (set copyicon 1)
  368. )
  369. (complete 45)
  370.  
  371. (if copyicon
  372.    (set niceicons
  373.       (askbool (prompt #Ask-NiceIcons)
  374.                (help #Help-NiceIcons)
  375.                (choices #Yes #No)
  376.                (default 0)
  377.       )
  378.    )
  379. )
  380. (complete 50)
  381.  
  382. (copyfiles
  383.    (prompt #Installing " PopShell")
  384.    (source #PopName)
  385.    (dest PopShellPath)
  386.    (files)
  387.    (optional force askuser)
  388. )
  389. (complete 60)
  390.  
  391. (if copyicon
  392.    (copyfiles
  393.       (if niceicons
  394.           (source "icons/PopShell16.info")
  395.           (source "icons/PopShell4.info")
  396.       )
  397.       (newname "PopShell.info")
  398.       (dest PopShellPath)
  399.       (files)
  400.    )
  401. )
  402. (tooltype
  403.    (prompt #WorkOn " PopShell")
  404.    (dest (tackon PopShellPath "PopShell"))
  405.    (settooltype "CONFIGNAME"  (tackon PopShellCfgPath "PopShell.config"))
  406.    (settooltype "CX_PRIORITY" "126")
  407.    (settooltype "CX_POPKEY"   "lcommand p")
  408.    (settooltype "CX_POPUP"    "NO")
  409.    (settooltype "STARTPRI"    "-80")
  410.    (settooltype "DONOTWAIT"   "")
  411.    (setstack 8000)
  412.    (noposition)
  413. )
  414. (complete 70)
  415.  
  416. (if PopCfgRename
  417.    (rename (tackon PopShellCfgPath "PopShell.config") (tackon PopShellCfgPath "PopShell.config.old")
  418.       (prompt #Rename-PopShellCfg)
  419.    )
  420. )
  421. (complete 80)
  422.  
  423. (if PopCfg
  424.    (copyfiles
  425.       (prompt #EmptyCfg " PopShell")
  426.       (source "PopShell.config")
  427.       (dest PopShellCfgPath)
  428.       (files)
  429.       (optional force askuser)
  430.    )
  431. )
  432. (complete 90)
  433.  
  434. (if languages
  435.    (
  436.       (if (= (exists "LOCALE:catalogs/deutsch/PopShell.catalog") 1)
  437.          (delete "LOCALE:catalogs/deutsch/PopShell.catalog")
  438.       )
  439.       (if (= (exists (tackon PopShellPath "catalogs/deutsch/PopShell.catalog")) 1)
  440.          (delete (tackon PopShellPath "catalogs/deutsch/PopShell.catalog"))
  441.       )
  442.       (
  443.          (if (= (exists (tackon LocalePath "catalogs")) 0)
  444.             (makedir (tackon LocalePath "catalogs"))
  445.          )
  446.          (if (BITAND languages 1) ; deutsch
  447.             (
  448.                (if (= (exists (tackon LocalePath "catalogs/deutsch")) 0)
  449.                   (makedir (tackon LocalePath "catalogs/deutsch"))
  450.                )
  451.                (copyfiles
  452.                   (prompt #InstCat #Lang-German)
  453.                   (source "catalogs/deutsch/PopShell.catalog")
  454.                   (dest (tackon LocalePath "catalogs/deutsch"))
  455.                   (files)
  456.                   (optional force askuser)
  457.                )
  458.             )
  459.          )
  460.       )
  461.    )
  462. )
  463. (complete 100)
  464.  
  465. (user 2)
  466. (message #Complete)
  467. (exit (quiet))
  468.